package cn.weakup.designpattern.b_creational.prototype;

import java.util.Map;

/**
 * @author lixj
 * @version 1.0.0
 * @date 2022/6/5
 * @desc 选择题实体类
 */
public class ChoiceQuestion {
    private String name; // 题⽬
    private Map<String, String> option; // 选项；A、B、C、D
    private String key; // 答案；B
    public ChoiceQuestion() {
    }
    public ChoiceQuestion(String name, Map<String, String> option, String
            key) {
        this.name = name;
        this.option = option;
        this.key = key;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Map<String, String> getOption() {
        return option;
    }

    public void setOption(Map<String, String> option) {
        this.option = option;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }
}
